using System.Collections;
using System.Collections.Generic;
using UnityEngine;

//有这行生成的脚本都是UTF-8形式的

namespace MyGame
{
    public class BaseManager<T> : MonoBehaviour where T : MonoBehaviour
    {
        private static T instance;

        public static T Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = FindObjectOfType<T>();
                }
                return instance;
            }
        }

        public ManagerType managerType;
    }
}
